﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CodeCamp.Models.Shared;

namespace CodeCamp.Models.Schedule
{
    public class ScheduleBuildingEditViewModel : SharedViewModel
    {
        public BuildingEditModel Building { get; set; }

        public class BuildingEditModel
        {
            public BuildingEditModel()
            {
                Rooms = new List<RoomEditModel>();
            }

            public int Id { get; set; }

            [Required]
            [MaxLength(128)]
            public string Name { get; set; }

            public List<RoomEditModel> Rooms { get; set; }
        }
    }
}